<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<h:outputStylesheet name="common-style.css" library="css" />
	<title>Hỗ trợ giao dịch viên</title>
	<link rel="shortcut icon" type="image/x-icon"
		href="#{request.contextPath}/resources/images/favicon.ico" />
</h:head>
<h:body style="font-size: 10px;">
	<p:layout style="height:800px;width:1200px; margin:0 auto;" id="layout">
		<p:layoutUnit position="center">
			<p:graphicImage value="/resources/images/MDB.jpg" width="250"
				height="90" />
			<p:tabMenu activeIndex="4">
				<p:menuitem value="Trang chính" url="/MainPage.xhtml"
					icon="ui-icon-star" />
				<p:menuitem value="Tiền gửi tiết kiệm có kỳ hạn"
					url="/FixedDeposits.xhtml" icon="ui-icon-star" />
				<p:menuitem value="Tiền gửi tiết kiệm không kỳ hạn"
					url="/Nonterm.xhtml" icon="ui-icon-star" />
				<p:menuitem value="Tiền gửi tiết kiệm kết hợp" url="/Combo.xhtml"
					icon="ui-icon-star" />
				<p:menuitem value="Hỗ trợ" url="/Support.xhtml" icon="ui-icon-star" />
				<p:menuitem value="Liên hệ" url="/Contact.xhtml" icon="ui-icon-star" />
			</p:tabMenu>
			<p:ajaxStatus onstart="modalDialogTest.show();"
				onsuccess="modalDialogTest.hide();" />
			<p:dialog id="modalDialog" showHeader="false" closable="true"
				widgetVar="modalDialogTest" modal="true">
				<p:graphicImage value="/resources/images/482.GIF" />
			</p:dialog>
			<h:form id="frmUpdateScratchCard">
				<p:panel header="HỖ TRỢ GIAO DỊCH VIÊN">
					<p:growl id="growl_ID" showDetail="true" sticky="true" />
					<p:tabView effect="fade" effectDuration="fast">
						<p:tab title="Tra cứu khách hàng">
							<p:panelGrid columns="1" id="frmCustomer">
								<f:facet name="header">
									<h:outputText value="Mã khách hàng (GCID): "
										style="float:left;" />
									<p:inputText value="#{customerBeans.customerId}"
										style="float:left; height:20px;" />
									<p:commandButton icon="ui-icon-search"
										update="frmCustomer,dtbCustomer,dtbCustomerCasa"
										value="Tìm kiếm" action="#{customerBeans.searchByCustomerRef}"
										style="float:left;" />
								</f:facet>
								<p:row>
									<h:panelGroup>
										<h:outputText value="Thẻ cào tích lũy hiện tại * :"
											styleClass="textBold" />
										<h:outputText value="#{customerBeans.totalScradAvailable}"
											styleClass="textBold" />
										<p:spacer width="20" />
										<h:outputText value="Số tiền còn dư lại (VND) ** :"
											styleClass="textBold" />
										<h:outputText value="#{customerBeans.totalAmountAvailable}"
											styleClass="textBold">
											<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
										</h:outputText>
									</h:panelGroup>
								</p:row>
								<p:row>
									<p:dataTable id="dtbCustomer" var="FD"
										value="#{customerBeans.fdDataModel}"
										selection="#{customerBeans.depositsSelected}"
										selectionMode="single" emptyMessage="Không có dữ liệu">

										<p:ajax event="rowSelect"
											listener="#{customerBeans.onRowSelect}"
											update=":frmUpdateScratchCard:displayLuckyDraw,:frmUpdateScratchCard:display, :frmUpdateScratchCard:displayBonus,:frmUpdateScratchCard:displayAddress"
											oncomplete="customerDetailDlg.show();" />
										<p:ajax event="rowUnselect"
											listener="#{customerBeans.onRowUnselect}"
											update=":frmUpdateScratchCard:display" />

										<f:facet name="header">
											<h:outputText value="TIỀN GỬI TIẾT KIỆM CÓ KỲ HẠN"
												style="float:left;" />
										</f:facet>
										<p:column headerText="Sổ tiết kiệm">
											<h:outputText value="#{FD.savingbookNo}"
												styleClass="textBold" />
										</p:column>

										<p:column headerText="Tên khách hàng">
											<h:outputText value="#{FD.customerName}"
												styleClass="textBold" />
										</p:column>

										<p:column headerText="Kỳ hạn">
											<h:outputText value="#{FD.term}" styleClass="textBold" />
										</p:column>

										<p:column headerText="Ngày bắt đầu">
											<h:outputText value="#{FD.startDate}" styleClass="textBold">
												<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
											</h:outputText>
										</p:column>

										<p:column headerText="Số tiền (VND)">
											<h:outputText value="#{FD.amount}" styleClass="textBold">
												<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
											</h:outputText>
										</p:column>
										<p:column headerText="Thẻ cào">
											<h:outputText value="#{FD.scCard}" styleClass="textBold" />
										</p:column>
										<p:column headerText="Dự thưởng">
											<h:outputText value="#{FD.luckyDraw}" styleClass="textBold" />
										</p:column>
									</p:dataTable>

									<p:dataTable id="dtbCustomerCasa" var="CAS"
										value="#{customerBeans.csDataModel}"
										emptyMessage="Không có dữ liệu"
										selection="#{customerBeans.casaSelected}"
										selectionMode="single">
										<p:ajax event="rowSelect"
											listener="#{customerBeans.onRowSelectCS}"
											update=":frmUpdateScratchCard:displayLuckyDrawCS,:frmUpdateScratchCard:displayCS, :frmUpdateScratchCard:displayBonusCS,:frmUpdateScratchCard:displayAddressCS"
											oncomplete="customerDetailDlgCS.show();" />
										<f:facet name="header">
											<h:outputText value="TIỀN GỬI TIẾT KIỆM KHÔNG KỲ HẠN"
												style="float:left;" />
										</f:facet>
										<p:column headerText="Sổ tiết kiệm">
											<h:outputText value="#{CAS.accountLocked}"
												styleClass="textBold" />
										</p:column>

										<p:column headerText="Tên khách hàng">
											<h:outputText value="#{CAS.customerName}"
												styleClass="textBold" />
										</p:column>

										<p:column headerText="Số dư(VND)">
											<h:outputText value="#{CAS.wbBalances}" styleClass="textBold">
												<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
											</h:outputText>
										</p:column>
										<p:column headerText="Số tiền cam kết(VND)">
											<h:outputText value="#{CAS.amountLocked}"
												styleClass="textBold">
												<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
											</h:outputText>
										</p:column>
										<p:column headerText="Ngày cam kết">
											<h:outputText value="#{CAS.dateLocked}" styleClass="textBold">
												<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
											</h:outputText>
										</p:column>
										<p:column headerText="Thời hạn">
											<h:outputText value="#{CAS.termLocked}" styleClass="textBold" />
										</p:column>
										<p:column headerText="Thẻ cào">
											<h:outputText value="#{CAS.scCard}" styleClass="textBold" />
										</p:column>
										<p:column headerText="Dự thưởng">
											<h:outputText value="#{CAS.luckyDraw}" styleClass="textBold" />
										</p:column>

									</p:dataTable>
									<p:dataTable id="dtbCustomerFDCasa" var="FDCC"
										style="width:100%;" value="#{customerBeans.fdcsDataModel}"
										selection="#{customerBeans.depositCasaSelected}"
										selectionMode="single" emptyMessage="Không có dữ liệu">
										<p:ajax event="rowSelect"
											listener="#{customerBeans.onRowSelectFDCS}"
											update=":frmUpdateScratchCard:displayLuckyDrawFDCS,:frmUpdateScratchCard:displayFDCS, :frmUpdateScratchCard:displayBonusFDCS,:frmUpdateScratchCard:displayAddressFDCS"
											oncomplete="customerDetailDlgFDCS.show();" />

										<f:facet name="header">
											<h:outputText value="TIỀN GỬI TIẾT KIỆM KẾT HỢP"
												style="float:left;" />
										</f:facet>
										<p:column headerText="Sổ tiết kiệm">
											<h:outputText value="#{FDCC.savingbookNo}"
												styleClass="textBold" />
										</p:column>

										<p:column headerText="Tên khách hàng">
											<h:outputText value="#{FDCC.customerName}"
												styleClass="textBold" />
										</p:column>

										<p:column headerText="Kỳ hạn">
											<h:outputText value="#{FDCC.fdTerm}" styleClass="textBold" />
										</p:column>

										<p:column headerText="Ngày bắt đầu">
											<h:outputText value="#{FDCC.startDate}" styleClass="textBold">
												<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
											</h:outputText>
										</p:column>

										<p:column headerText="Số tiền tiết kiệm(VND)">
											<h:outputText value="#{FDCC.fdAmount}" styleClass="textBold">
												<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
											</h:outputText>
										</p:column>

										<p:column headerText="Sổ TK không kỳ hạn">
											<h:outputText value="#{FDCC.accountLocked}"
												styleClass="textBold" />
										</p:column>
										<p:column headerText="Số tiền cam kết(VND)">
											<h:outputText value="#{FDCC.amountLocked}"
												styleClass="textBold">
												<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
											</h:outputText>
										</p:column>
										<p:column headerText="Ngày cam kết">
											<h:outputText value="#{FDCC.endDateLocked}"
												styleClass="textBold">
												<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
											</h:outputText>

										</p:column>
										<p:column headerText="Thời hạn">
											<h:outputText value="#{FDCC.termLocked} ngày"
												styleClass="textBold" />

										</p:column>
										<p:column headerText="Thẻ cào">
											<h:outputText value="#{FDCC.scCard}" styleClass="textBold" />
										</p:column>
										<p:column headerText="Dự thưởng">
											<h:outputText value="#{FDCC.luckyDraw}" styleClass="textBold" />
										</p:column>

									</p:dataTable>
								</p:row>
							</p:panelGrid>
						</p:tab>

						<p:tab title="Nhập mã thẻ cào">
							<p:panelGrid columns="1" style="width:80%;"
								id="frmViewInfo2Update">
								<f:facet name="header">
									<h:outputText value="Số sổ tiết kiệm: *" style="float:left;" />
									<p:inputText value="#{scratchCardBeans.savingBookNo}"
										style="float:left; height:20px;" />
									<p:commandButton icon="ui-icon-search"
										value="Xem thông tin thẻ cào" style="float:left;"
										action="#{scratchCardBeans.search2updateScratchCards}"
										update="frmViewInfo2Update,:frmUpdateScratchCard:growl_ID" />
								</f:facet>
								<p:row>
									<h:outputText value="Tổng số thẻ cào 20,000VND:" />
									<h:outputText value="#{scratchCardBeans.number20k}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<h:outputText value="Số thẻ cào 20,000VND chưa nhập: " />
									<h:outputText value="#{scratchCardBeans.number20kNotInput}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<p:inputTextarea rows="2" value="#{scratchCardBeans.detail20k}"
										style="width:70%;font-weight:bold;" autoResize="true"
										disabled="#{scratchCardBeans.number20kNotInput == 0}"></p:inputTextarea>
								</p:row>
								<p:row>
									<h:outputText value="Tổng số thẻ cào 50,000VND:" />
									<h:outputText value="#{scratchCardBeans.number50k}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<h:outputText value="Số thẻ cào 50,000VND chưa nhập " />
									<h:outputText value="#{scratchCardBeans.number50kNotInput}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<p:inputTextarea rows="2" value="#{scratchCardBeans.detail50k}"
										style="width:70%;font-weight:bold;" autoResize="true"
										disabled="#{scratchCardBeans.number50kNotInput == 0}"></p:inputTextarea>
								</p:row>
								<p:row>
									<h:outputText value="Tổng số thẻ cào 100,000VND:" />
									<h:outputText value="#{scratchCardBeans.number100k}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<h:outputText value="Số thẻ cào 100,000VND chưa nhập " />
									<h:outputText value="#{scratchCardBeans.number100kNotInput}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<p:inputTextarea rows="2"
										value="#{scratchCardBeans.detail100k}"
										style="width:70%;font-weight:bold;" autoResize="true"
										disabled="#{scratchCardBeans.number100kNotInput == 0}"></p:inputTextarea>
								</p:row>
								<p:row>
									<h:outputText value="Tổng số thẻ cào 200,000VND:" />
									<h:outputText value="#{scratchCardBeans.number200k}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<h:outputText value="Số thẻ cào 200,000VND chưa nhập " />
									<h:outputText value="#{scratchCardBeans.number200kNotInput}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<p:inputTextarea rows="2"
										value="#{scratchCardBeans.detail200k}"
										style="width:70%;font-weight:bold;" autoResize="true"
										disabled="#{scratchCardBeans.number200kNotInput == 0}"></p:inputTextarea>
								</p:row>
								<p:row>
									<h:outputText value="Tổng số thẻ cào 500,000VND:" />
									<h:outputText value="#{scratchCardBeans.number500k}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<h:outputText value="Số thẻ cào 500,000VND chưa nhập " />
									<h:outputText value="#{scratchCardBeans.number500kNotInput}"
										styleClass="textBold" />
									<p:separator style="height:2px;" />
									<p:inputTextarea rows="2"
										value="#{scratchCardBeans.detail500k}"
										style="width:70%;font-weight:bold;" autoResize="true"
										disabled="#{scratchCardBeans.number500kNotInput == 0}"></p:inputTextarea>
								</p:row>
								<f:facet name="footer">
									<p:commandButton value="Lưu thông tin"
										action="#{scratchCardBeans.updateScratchCardDetails}"
										update="frmViewInfo2Update,:frmUpdateScratchCard:growl_ID"
										icon="ui-icon-disk" />
									<p:commandButton type="reset" value="Refresh"
										icon="ui-icon-refresh" />
								</f:facet>
							</p:panelGrid>
						</p:tab>
						<p:tab title="In lại phiếu dự thưởng">
							<p:panelGrid columns="1" id="frmLuckyDrawRePrint">
								<f:facet name="header">
									<h:outputText
										value="Số sổ tiết kiệm (Có kỳ hạn/Không kỳ hạn): "
										style="float:left;" />
									<p:inputText value="#{luckyDrawBeans.savingBookNo}"
										style="float:left; height:20px;" />
									<p:commandButton icon="ui-icon-search" value="Xem thông tin"
										style="float:left;" action="#{luckyDrawBeans.search2RePrint}"
										update="frmLuckyDrawRePrint" />
								</f:facet>
								<p:panelGrid columns="4" style="width:100%;" id="pgCustomerInfo">
									
									<f:facet name="header">
									<h:outputText value="#{luckyDrawBeans.programJoined}"
										style="font-weight:bold; float:left;" />
									</f:facet>
									<h:outputText value="Sổ tiết kiệm:" />
									<h:outputText value="#{luckyDrawBeans.savingBookNo}"
										style="font-weight:bold" />

									<h:outputText value="Tên khách hàng:" />
									<h:outputText value="#{luckyDrawBeans.customerName}"
										style="font-weight:bold" />

									<h:outputText value="Mã khách hàng:" />
									<h:outputText value="#{luckyDrawBeans.customerId}"
										style="font-weight:bold" />

									<h:outputText value="Chi nhánh: " />
									<h:outputText value="#{luckyDrawBeans.branchCode}"
										style="font-weight:bold" />

									<h:outputText value="Số dự thưởng:" />
									<h:outputText value="#{luckyDrawBeans.luckyDraw}"
										style="font-weight:bold" />

									<h:outputText value="Số thẻ cào: " />
									<h:outputText value="#{luckyDrawBeans.sc_Card}"
										style="font-weight:bold" />
										
										
									<h:outputText value="Số áo thun:" />
									<h:outputText value="#{luckyDrawBeans.tshirtGift}"
										style="font-weight:bold" />

									<h:outputText value="Số khay mứt: " />
									<h:outputText value="#{luckyDrawBeans.trayGift}"
										style="font-weight:bold" />
										
											<h:outputText value="Số phiếu mua hàng (100,000VND):" />
									<h:outputText value="#{luckyDrawBeans.voucherGift}"
										style="font-weight:bold" />

									<h:outputText value="Số phiếu mua hàng (500,000VND): " />
									<h:outputText value="#{luckyDrawBeans.voucherGiftMore}"
										style="font-weight:bold">
										</h:outputText>
								</p:panelGrid>
								
									<p:panelGrid columns="4" style="width:100%; margin:0 auto;">
										<f:facet name="header">
											<h:outputText value="THÔNG TIN CẦN THAY ĐỔI" style="float:left;" />
											<h:outputText
												value="Nhập chi tiết thẻ cào theo định dạng: ms1, ms2, ms3,..."
												style="float:right;color:red;font-style:italic;" />
										</f:facet>
										<h:outputText value="Số áo thun khách hàng nhận" style="color:red;" />
										<p:inputText value="#{luckyDrawBeans.bgiftReceived}"
											 required="true"
											requiredMessage="Nhập số 0 nếu khách hàng không nhận áo thun">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Số khay mứt khách hàng nhận" style="color:red;" />
										<p:inputText value="#{luckyDrawBeans.tgiftReceived}"
											 required="true"
											requiredMessage="Nhập số 0 nếu khách hàng không nhận khay mứt">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>

										<h:outputText value="Số thẻ cảm ơn (Thẻ cào không trúng)" />
										<p:inputText value="#{luckyDrawBeans.number00k}"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" required="true"
											requiredMessage="Nhập số 0 nếu không có thẻ cảm ơn khách hàng">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Chi tiết" />
										<p:inputText style="width:200px;" disabled="true" />

										<h:outputText value="Số thẻ 20K" />
										<p:inputText value="#{luckyDrawBeans.number20k}"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" required="true"
											requiredMessage="Nhập số 0 nếu không có thẻ cào 20,000VND">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Chi tiết" />
										<p:inputTextarea value="#{luckyDrawBeans.detail20k}"
											autoResize="true" rows="1" style="width:300px;"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" />

										<h:outputText value="Số thẻ 50K" />
										<p:inputText value="#{luckyDrawBeans.number50k}"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" required="true"
											requiredMessage="Nhập số 0 nếu không có thẻ cào 50,000VND">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Chi tiết" />
										<p:inputTextarea value="#{luckyDrawBeans.detail50k}"
											autoResize="true" rows="1" style="width:300px;"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" />
										<h:outputText value="Số thẻ 100K" />
										<p:inputText value="#{luckyDrawBeans.number100k}"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" required="true"
											requiredMessage="Nhập số 0 nếu không có thẻ cào 100,000VND">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Chi tiết" />
										<p:inputTextarea value="#{luckyDrawBeans.detail100k}"
											autoResize="true" rows="1" style="width:300px;"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" />
										<h:outputText value="Số thẻ 200K" />
										<p:inputText value="#{luckyDrawBeans.number200k}"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" required="true"
											requiredMessage="Nhập số 0 nếu không có thẻ cào 200,000VND">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Chi tiết" />
										<p:inputTextarea value="#{luckyDrawBeans.detail200k}"
											autoResize="true" rows="1" style="width:300px;"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" />
										<h:outputText value="Số thẻ 500K" />
										<p:inputText value="#{luckyDrawBeans.number500k}"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" required="true"
											requiredMessage="Nhập số 0 nếu không có thẻ cào 500,000VND">
											<f:convertNumber integerOnly="true" type="number" />
										</p:inputText>
										<h:outputText value="Chi tiết" />
										<p:inputTextarea value="#{luckyDrawBeans.detail500k}"
											autoResize="true" rows="1" style="width:300px;"
											disabled="#{luckyDrawBeans.luckyDraw == 0}" />
										<f:facet name="footer">
										</f:facet>
								</p:panelGrid>
								<f:facet name="footer">
									<p:commandButton value="Cập nhật" 
									icon="ui-icon-disk" 
									action="#{luckyDrawBeans.updateInfoToPrint}" 
									update=":frmUpdateScratchCard:growl_ID,frmLuckyDrawRePrint" 
									disabled="#{luckyDrawBeans.btnSaveVisible == false}">
									</p:commandButton>
									<p:commandButton id="downloadLink11"
								action="#{luckyDrawBeans.downloadPrevented}"
								value="In phiếu thông tin" ajax="false" 
								icon="ui-icon-print"
								disabled="#{luckyDrawBeans.btnVisible == false}">
								<p:fileDownload value="#{luckyDrawBeans.file}" />
							</p:commandButton>
								</f:facet>
							</p:panelGrid>
						</p:tab>
					</p:tabView>
					<h:outputText
						value="(*) Không áp dụng thẻ cào tích lũy cho Sổ tiết kiệm lãi suất 7.5% ; "
						style="font-style:italic;" />
					<h:outputText value="(**) Chỉ dành cho khách hàng doanh nghiệp"
						style="font-style:italic;" />
				</p:panel>

				<p:dialog header="TIỀN GỬI TIẾT KIỆM KHÔNG KỲ HẠN"
					widgetVar="customerDetailDlgCS" id="customerDetailDlgCS"
					showEffect="clip" hideEffect="clip" closable="true">
					<p:fieldset>
						<h:panelGrid id="displayCS" columns="4" cellpadding="4"
							style="margin:0 auto;width:500px;">
							<h:outputText value="Sổ tiết kiệm:" />
							<h:outputText value="#{customerBeans.casaSelected.accountLocked}"
								style="font-weight:bold" />

							<h:outputText value="Tên khách hàng:" />
							<h:outputText value="#{customerBeans.casaSelected.customerName}"
								style="font-weight:bold" />

							<h:outputText value="Mã khách hàng:" />
							<h:outputText value="#{customerBeans.casaSelected.customerId}"
								style="font-weight:bold" />

							<h:outputText value="Nhóm khách hàng(*):" />
							<h:outputText value="#{customerBeans.casaSelected.customerType}"
								style="font-weight:bold" />
							<h:outputText value="Chi nhánh:" />
							<h:outputText value="#{customerBeans.casaSelected.branchCode}"
								style="font-weight:bold" />

							<h:outputText value="Số dư(VND):" />
							<h:outputText value="#{customerBeans.casaSelected.wbBalances}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>
							<h:outputText value="Lãi suất:" />
							<h:outputText value="#{customerBeans.casaSelected.interestRate}%"
								style="font-weight:bold" />

							<h:outputText value="Ngày cam kết:" />
							<h:outputText value="#{customerBeans.casaSelected.dateLocked}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>
							<h:outputText value="Số tiền cam kết(VND):" />
							<h:outputText value="#{customerBeans.casaSelected.amountLocked}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>

							<h:outputText value="Thời hạn cam kết (Ngày):" />
							<h:outputText value="#{customerBeans.casaSelected.termLocked}"
								style="font-weight:bold" />

							<h:outputText value="Ngày hết cam kết:" />
							<h:outputText value="#{customerBeans.casaSelected.endDateLocked}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>

							<h:outputText value="Người tạo:" />
							<h:outputText value="#{customerBeans.casaSelected.createdBy}"
								style="font-weight:bold" />

							<h:outputText value="Ngày tạo:" />
							<h:outputText value="#{customerBeans.casaSelected.dateCreated}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>
						</h:panelGrid>
						<h:panelGrid columns="2" id="displayAddressCS">
							<h:outputText value="Địa chỉ khách hàng:" />
							<h:outputText value="#{customerBeans.casaSelected.address}"
								style="font-weight:bold" />
						</h:panelGrid>
					</p:fieldset>
					<p:spacer height="2" />
					<p:fieldset>
						<h:panelGrid id="displayBonusCS" columns="4" cellpadding="4">
							<h:outputText value="Tống số mã dự thưởng:" />
							<h:outputText value="#{customerBeans.casaSelected.luckyDraw}"
								style="font-weight:bold" />

							<h:outputText value="Tổng số thẻ cào:" />
							<h:outputText value="#{customerBeans.casaSelected.scCard}"
								style="font-weight:bold" />

							<h:outputText value="Số áo thun:" />
							<h:outputText value="#{customerBeans.casaSelected.bagGift}"
								style="font-weight:bold" />

							<h:outputText value="Số khay mứt tết:" />
							<h:outputText value="#{customerBeans.casaSelected.trayGift}"
								style="font-weight:bold" />
							<h:outputText value="Phiếu mua hàng (100,000VND):" />
							<h:outputText value="#{customerBeans.casaSelected.voucherGift}"
								style="font-weight:bold" />

							<h:outputText value="Phiếu mua hàng (500,000VND):" />
							<h:outputText
								value="#{customerBeans.casaSelected.voucherGiftMore}"
								style="font-weight:bold" />

							<h:outputText value="Số áo thun đã nhận:" />
							<h:outputText value="#{customerBeans.casaSelected.bgiftReceived}"
								style="font-weight:bold" />

							<h:outputText value="Số khay mứt đã nhận:" />
							<h:outputText value="#{customerBeans.casaSelected.tgiftReceived}"
								style="font-weight:bold" />
							<h:outputText value="Phiếu mua hàng đã nhận:" />
							<h:outputText value="#{customerBeans.casaSelected.voucherGift}"
								style="font-weight:bold" />

							<h:outputText value="Tổng số tiền cào thẻ (VND):" />
							<h:outputText value="#{customerBeans.casaSelected.scCardAmt}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>

						</h:panelGrid>
						<h:panelGrid columns="1" id="displayLuckyDrawCS">
							<f:facet name="header">
								<h:outputText value="MÃ SỐ DỰ THƯỞNG" style="float:left;" />
							</f:facet>
							<p:scrollPanel style="width:500px;height:90px">
								<p:outputPanel>
							#{customerBeans.luckyDrawCodesCS}
							</p:outputPanel>
							</p:scrollPanel>
						</h:panelGrid>
					</p:fieldset>
					<p:spacer height="1" />
					<p:fieldset>
						<h:outputText
							value="(*) 1: Khách hàng cá nhân; 2: Khách hàng doanh nghiệp"
							style="font-style:italic;" />
					</p:fieldset>

				</p:dialog>

				<p:dialog header="TIỀN GỬI TIẾT KIỆM CÓ KỲ HẠN"
					widgetVar="customerDetailDlg" id="customerDetailDlg"
					showEffect="clip" hideEffect="clip" closable="true">
					<p:fieldset>
						<h:panelGrid id="display" columns="4" cellpadding="4"
							style="margin:0 auto;width:500px;">
							<h:outputText value="Sổ tiết kiệm:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.savingbookNo}"
								style="font-weight:bold" />

							<h:outputText value="Tên khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.customerName}"
								style="font-weight:bold" />

							<h:outputText value="Mã khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.customerId}"
								style="font-weight:bold" />

							<h:outputText value="Nhóm khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.customerType}"
								style="font-weight:bold" />
							<h:outputText value="Chi nhánh:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.branchCode}"
								style="font-weight:bold" />

							<h:outputText value="Ngày bắt đầu:" />
							<h:outputText value="#{customerBeans.depositsSelected.startDate}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>
							<h:outputText value="Ngày kết thúc:" />
							<h:outputText value="#{customerBeans.depositsSelected.endDate}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>

							<h:outputText value="Kỳ hạn:" />
							<h:outputText value="#{customerBeans.depositsSelected.term}"
								style="font-weight:bold" />
							<h:outputText value="Lãi suất:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.interestRate}%"
								style="font-weight:bold" />

							<h:outputText value="Số tiền(VND):" />
							<h:outputText value="#{customerBeans.depositsSelected.amount}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>
							<h:outputText value="Người tạo:" />
							<h:outputText value="#{customerBeans.depositsSelected.createdBy}"
								style="font-weight:bold" />

							<h:outputText value="Ngày tạo:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.dateCreated}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>
						</h:panelGrid>
						<h:panelGrid columns="2" id="displayAddress">
							<h:outputText value="Địa chỉ khách hàng:" />
							<h:outputText value="#{customerBeans.depositsSelected.address}"
								style="font-weight:bold" />
						</h:panelGrid>
					</p:fieldset>
					<p:spacer height="2" />
					<p:fieldset>
						<h:panelGrid id="displayBonus" columns="4" cellpadding="4">
							<h:outputText value="Tống số mã dự thưởng:" />
							<h:outputText value="#{customerBeans.depositsSelected.luckyDraw}"
								style="font-weight:bold" />

							<h:outputText value="Tổng số thẻ cào:" />
							<h:outputText value="#{customerBeans.depositsSelected.scCard}"
								style="font-weight:bold" />

							<h:outputText value="Số áo thun:" />
							<h:outputText value="#{customerBeans.depositsSelected.bagGift}"
								style="font-weight:bold" />

							<h:outputText value="Số khay mứt tết:" />
							<h:outputText value="#{customerBeans.depositsSelected.trayGift}"
								style="font-weight:bold" />
							<h:outputText value="Phiếu mua hàng (100,000VND):" />
							<h:outputText
								value="#{customerBeans.depositsSelected.voucherGift}"
								style="font-weight:bold" />

							<h:outputText value="Phiếu mua hàng (500,000VND):" />
							<h:outputText
								value="#{customerBeans.depositsSelected.voucherGiftMore}"
								style="font-weight:bold" />

							<h:outputText value="Số áo thun đã nhận:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.bgiftReceived}"
								style="font-weight:bold" />

							<h:outputText value="Số khay mứt đã nhận:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.tgiftReceived}"
								style="font-weight:bold" />
							<h:outputText value="Phiếu mua hàng đã nhận:" />
							<h:outputText
								value="#{customerBeans.depositsSelected.voucherGift}"
								style="font-weight:bold" />

							<h:outputText value="Tổng số tiền cào thẻ(VND):" />
							<h:outputText value="#{customerBeans.depositsSelected.scCardAmt}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>

						</h:panelGrid>
						<h:panelGrid columns="1" id="displayLuckyDraw">
							<f:facet name="header">
								<h:outputText value="MÃ SỐ DỰ THƯỞNG" style="float:left;" />
							</f:facet>

							<p:scrollPanel style="width:500px;height:90px">
								<p:outputPanel>
							#{customerBeans.luckyDrawCodes}
							</p:outputPanel>
							</p:scrollPanel>
						</h:panelGrid>

					</p:fieldset>
					<p:spacer height="1" />
					<p:fieldset>
						<h:outputText
							value="(*) 1: Khách hàng cá nhân; 2: Khách hàng doanh nghiệp"
							style="font-style:italic;" />
					</p:fieldset>

				</p:dialog>

				<p:dialog header="TIỀN GỬI TIẾT KIỆM KẾT HỢP"
					widgetVar="customerDetailDlgFDCS" id="customerDetailDlgFDCS"
					showEffect="clip" hideEffect="clip" closable="true">
					<p:fieldset>
						<p:panelGrid id="displayFDCS" columns="4" cellpadding="4"
							style="margin:0 auto;width:700px;">

							<h:outputText value="Sổ tiết kiệm:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.savingbookNo}"
								style="font-weight:bold" />

							<h:outputText value="Tên khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.customerName}"
								style="font-weight:bold" />

							<h:outputText value="Mã khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.customerId}"
								style="font-weight:bold" />

							<h:outputText value="Nhóm khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.customerType}"
								style="font-weight:bold" />
							<h:outputText value="Chi nhánh:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.branchCode}"
								style="font-weight:bold" />

							<h:outputText value="Ngày bắt đầu:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.startDate}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>

							<h:outputText value="Kỳ hạn:" />
							<h:outputText value="#{customerBeans.depositCasaSelected.fdTerm}"
								style="font-weight:bold" />
							<h:outputText value="Lãi suất:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.interestRate}%"
								style="font-weight:bold" />

							<h:outputText value="Số tiền(VND):" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.fdAmount}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>

							<h:outputText value="Sổ TK không kỳ hạn:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.accountLocked}"
								style="font-weight:bold" />

							<h:outputText value="Ngày cam kết:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.startDateLocked}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>

							<h:outputText value="Số tiền cam kết(VND):" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.amountLocked}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>
							<h:outputText value="Lãi suất cam kết:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.accInterestRate}%"
								style="font-weight:bold">
							</h:outputText>

							<h:outputText value="Thời hạn cam kết(Ngày):" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.termLocked}"
								style="font-weight:bold" />

							<h:outputText value="Người tạo:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.createdBy}"
								style="font-weight:bold" />

							<h:outputText value="Ngày tạo:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.dateCreated}"
								style="font-weight:bold">
								<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
							</h:outputText>

						</p:panelGrid>
						<h:panelGrid columns="2" id="displayAddressFDCS">
							<h:outputText value="Địa chỉ khách hàng:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.address}"
								style="font-weight:bold" />
						</h:panelGrid>
					</p:fieldset>
					<p:spacer height="2" />
					<p:fieldset>
						<h:panelGrid id="displayBonusFDCS" columns="4" cellpadding="4">
							<h:outputText value="Tống số mã dự thưởng:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.luckyDraw}"
								style="font-weight:bold" />

							<h:outputText value="Tổng số thẻ cào:" />
							<h:outputText value="#{customerBeans.depositCasaSelected.scCard}"
								style="font-weight:bold" />

							<h:outputText value="Số áo thun:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.bagGift}"
								style="font-weight:bold" />

							<h:outputText value="Số khay mứt tết:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.trayGift}"
								style="font-weight:bold" />
							<h:outputText value="Phiếu mua hàng (100,000VND):" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.voucherGift}"
								style="font-weight:bold" />

							<h:outputText value="Phiếu mua hàng (500,000VND):" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.voucherGiftMore}"
								style="font-weight:bold" />

							<h:outputText value="Số áo thun đã nhận:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.bgiftReceived}"
								style="font-weight:bold" />

							<h:outputText value="Số khay mứt đã nhận:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.tgiftReceived}"
								style="font-weight:bold" />
							<h:outputText value="Phiếu mua hàng đã nhận:" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.voucherGift}"
								style="font-weight:bold" />

							<h:outputText value="Tổng số tiền cào thẻ(VND):" />
							<h:outputText
								value="#{customerBeans.depositCasaSelected.scCardAmt}"
								style="font-weight:bold">
								<f:convertNumber locale="en" pattern="#,##0.00;(#,##0.00)" />
							</h:outputText>

						</h:panelGrid>
						<h:panelGrid columns="1" id="displayLuckyDrawFDCS">
							<f:facet name="header">
								<h:outputText value="MÃ SỐ DỰ THƯỞNG" style="float:left;" />
							</f:facet>

							<p:scrollPanel style="width:700px;height:90px">
								<p:outputPanel>
							#{customerBeans.luckyDrawCodesFDCS}
							</p:outputPanel>
							</p:scrollPanel>
						</h:panelGrid>

					</p:fieldset>
					<p:spacer height="1" />
					<p:fieldset>
						<h:outputText
							value="(*) 1: Khách hàng cá nhân; 2: Khách hàng doanh nghiệp"
							style="font-style:italic;" />
					</p:fieldset>

				</p:dialog>
			</h:form>
			<h:outputText
				value="Bản quyền &#169; 2013 Ngân hàng TMCP Phát Triển Mê Kông. Xây dựng bởi Đỗ Đức Tú."
				style="font-style:italic;" />
		</p:layoutUnit>
	</p:layout>
</h:body>
</html>